﻿/*
 * DotNetCrypt - an open source library of cryptographic algorithms for .NET
 * Copyright (C) 2009 David Musgrove
 * 
 * This file is part of DotNetCrypt.
 *
 * DotNetCrypt is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DotNetCrypt is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

namespace DotNetCrypt.Tests
{
    internal class NullTransform : ManagedTransformBase
    {
        public NullTransform(SymmetricAlgorithmBase algorithm, byte[] rgbIv, TransformDirection transformDirection)
            : base(algorithm, rgbIv, transformDirection, Endianness.Big)
        {
        }

        public override int InputBlockSize
        {
            get { return BlockSizeBytes; }
        }

        public override int OutputBlockSize
        {
            get { return BlockSizeBytes; }
        }

        public override bool CanTransformMultipleBlocks
        {
            get { return true; }
        }

        public override bool CanReuseTransform
        {
            get { return true; }
        }

        public ExtendedCipherMode ExtendedMode
        {
            get { return Mode; }
            set { Mode = value; }
        }

        protected override void EncryptBlock(byte[] block)
        {
        }

        protected override void DecryptBlock(byte[] block)
        {
        }
    }
}